package com.dinetech.ejecutor;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;

public class Intro extends Activity{
	
	private static final int SPLASH_TIME = 2 * 1000;
	
	 @Override
	    protected void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        requestWindowFeature(Window.FEATURE_NO_TITLE);
	        setContentView(R.layout.intro);
	        //setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
	       
	        
	        new Handler().postDelayed(new Runnable() {

				@Override
				public void run() {

					Intent intent = new Intent(Intro.this,
							Ingreso.class);
					startActivity(intent);

					Intro.this.finish();

					overridePendingTransition(R.anim.fade_in, R.anim.fade_out);

				}
			}, SPLASH_TIME);
			
			new Handler().postDelayed(new Runnable() {
				  @Override
				  public void run() {
				         } 
				    }, SPLASH_TIME);
	    }
	 
	 @Override
		public void onBackPressed() {
			this.finish();
			super.onBackPressed();
		}
	    
	   

}
